# -*- encoding=utf8 -*-

__author__ = "code哥"
from sanic.blueprints import Blueprint
from sanic import response

blueprint = Blueprint(__name__)


# blueprint.static('/', 'static/web/index.html')


@blueprint.route('/')
async def get_static1(request):
    return response.redirect('static/web/index.html')


# 对h5不是采用hash路由方式的兼容
@blueprint.route('/index')
async def get_static2(request):
    return response.redirect('/')


@blueprint.route('/deviceList')
async def get_static3(request):
    return response.redirect('/')


@blueprint.route('/imgList')
async def get_static4(request):
    return response.redirect('/')


@blueprint.route('/runLog')
async def get_static4(request):
    return response.redirect('/')


@blueprint.route('/about')
async def get_static5(request):
    return response.redirect('/')


@blueprint.route('/openAPI')
async def get_static6(request):
    return response.redirect('/')


@blueprint.route('/reg_qrcode')
async def get_static7(request):
    return response.redirect('/')


@blueprint.route('/manifest.json')
async def get_static8(request):
    return response.redirect('static/web/manifest.json')
